
#ifndef UNTITLED1_ADJACENCYLIST_H
#define UNTITLED1_ADJACENCYLIST_H

#include <iostream>

using namespace std;
const int MaxVnum = 100;
typedef char VexType;
typedef struct AdjNode {
    int v;
    struct AdjNode *next;
} AdjNode;
typedef struct VexNode {
    VexType data;
    AdjNode *first;
} VexNode;
typedef struct {
    VexNode Vex[MaxVnum];
    int vexnum,edgenum;
}ALGragh;

class AdjacencyList {
public:
    int Locatevex(ALGragh G,VexType x);
    void InsertEdge(ALGragh& G,int i,int j);
    void Print(ALGragh G);
    void CreateALGraph(ALGragh &G);
};


#endif //UNTITLED1_ADJACENCYLIST_H
